#pragma once
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/ftp.h>
#include <arpa/inet.h>

#include <iostream>
#include <string>
#include <sstream>
std::string InetAddr_to_string(struct sockaddr_in & addr)
{
    uint16_t Client_port = ntohs(addr.sin_port);
    std::string Client_ip = inet_ntoa(addr.sin_addr);
    std::stringstream sstr;
    sstr<<"Client ip:"<<Client_ip<<" | Client_port: "<<Client_port;
    return sstr.str();
}